package net.url;

import java.io.IOException;
import java.io.InputStream;
import java.net.ContentHandler;
import java.net.URLConnection;
import java.util.Date;

public class x_time extends ContentHandler
{
	
	@Override
	public Object getContent(URLConnection urlc) throws IOException
	{
		@SuppressWarnings("rawtypes")
		Class[] classes = new Class[1];
		classes[0] = Date.class;
		return this.getContent(urlc,classes);
	}
	@Override
	public Object getContent(URLConnection urlc, @SuppressWarnings("rawtypes") Class[] classes) throws IOException
	{
		InputStream in = urlc.getInputStream();
		for (int i = 0; i < classes.length; )
		{
			if(classes[i]==InputStream.class)
			{
				return in;
			}
			else
			{
				return in;
			}
		}
		return null;
	}
	
}
